package com.yt.system.vo;

import com.yt.system.domain.Resource;
import com.yt.system.domain.User;

import java.util.Date;

/**
 * 占用资源的用户姓名和占用时间段
 */
public class OccupyResourceVO {
    private Integer arid;

    private Integer aruid;

    private Integer arrid;

    private Date arstarttime;

    private Date arendtime;

    private Integer flag;

    private User user;

    public OccupyResourceVO(Integer arid, Integer aruid, Integer arrid, Date arstarttime, Date arendtime, Integer flag, User user) {
        this.arid = arid;
        this.aruid = aruid;
        this.arrid = arrid;
        this.arstarttime = arstarttime;
        this.arendtime = arendtime;
        this.flag = flag;
        this.user = user;
    }

    public OccupyResourceVO() {
        super();
    }

    public Integer getArid() {
        return arid;
    }

    public void setArid(Integer arid) {
        this.arid = arid;
    }

    public Integer getAruid() {
        return aruid;
    }

    public void setAruid(Integer aruid) {
        this.aruid = aruid;
    }

    public Integer getArrid() {
        return arrid;
    }

    public void setArrid(Integer arrid) {
        this.arrid = arrid;
    }

    public Date getArstarttime() {
        return arstarttime;
    }

    public void setArstarttime(Date arstarttime) {
        this.arstarttime = arstarttime;
    }

    public Date getArendtime() {
        return arendtime;
    }

    public void setArendtime(Date arendtime) {
        this.arendtime = arendtime;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "OccupyResourceVO{" +
                "arid=" + arid +
                ", aruid=" + aruid +
                ", arrid=" + arrid +
                ", arstarttime=" + arstarttime +
                ", arendtime=" + arendtime +
                ", flag=" + flag +
                ", user=" + user +
                '}';
    }
}
